package top.twoteam.equipment.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.alibaba.excel.annotation.write.style.*;
import org.apache.poi.ss.usermodel.FillPatternType;

import java.util.Date;

/**
 * 设备信息
 */
//@HeadRowHeight(30)  //设置标题高度
//头字体设置成20
//@HeadFontStyle(fontHeightInPoints = 20)
//内容字体设置成20
//@ContentFontStyle(fontHeightInPoints = 20)
public class EquipmentInfo {
    @ExcelProperty({"༼ つ ◕_◕ ༽つ设备信息表","设备标识"})
    private Integer equipmentid;
    @ExcelProperty({"༼ つ ◕_◕ ༽つ设备信息表","设备名称"})
    private String equipmentname;
    @ExcelProperty({"༼ つ ◕_◕ ༽つ设备信息表","设备类型"})
    private String equipmenttype;
    @ExcelProperty({"༼ つ ◕_◕ ༽つ设备信息表","报警类型"})
    private String alarmtype;
    @ExcelProperty({"༼ つ ◕_◕ ༽つ设备信息表","经度"})
    private Float longtitude;
    @ExcelProperty({"༼ つ ◕_◕ ༽つ设备信息表","纬度"})
    private Float latitude;
    @ExcelProperty({"༼ つ ◕_◕ ༽つ设备信息表","地址"})
    private String address;
    @ExcelProperty({"༼ つ ◕_◕ ༽つ设备信息表","连接方式"})
    private String linktype;
    @ExcelProperty({"༼ つ ◕_◕ ༽つ设备信息表","保养端口"})
    private String maintainport;
    @ExcelProperty({"༼ つ ◕_◕ ༽つ设备信息表","上次保养UID"})
    private Integer lastmaintainuid;
    @DateTimeFormat("yyyy年MM月dd日  hh时mm分ss秒")
    @ColumnWidth(value = 28)
    @ExcelProperty({"༼ つ ◕_◕ ༽つ设备信息表","上次保养时间"})
    private Date lastmaintaintime;

    public EquipmentInfo(Integer equipmentid, String equipmentname, String equipmenttype, String alarmtype, Float longtitude, Float latitude, String address, String linktype, String maintainport, Integer lastmaintainuid, Date lastmaintaintime) {
        this.equipmentid = equipmentid;
        this.equipmentname = equipmentname;
        this.equipmenttype = equipmenttype;
        this.alarmtype = alarmtype;
        this.longtitude = longtitude;
        this.latitude = latitude;
        this.address = address;
        this.linktype = linktype;
        this.maintainport = maintainport;
        this.lastmaintainuid = lastmaintainuid;
        this.lastmaintaintime = lastmaintaintime;
    }

    public EquipmentInfo() {
        super();
    }

    public Integer getEquipmentid() {
        return equipmentid;
    }

    public void setEquipmentid(Integer equipmentid) {
        this.equipmentid = equipmentid;
    }

    public String getEquipmentname() {
        return equipmentname;
    }

    public void setEquipmentname(String equipmentname) {
        this.equipmentname = equipmentname;
    }

    public String getEquipmenttype() {
        return equipmenttype;
    }

    public void setEquipmenttype(String equipmenttype) {
        this.equipmenttype = equipmenttype;
    }

    public String getAlarmtype() {
        return alarmtype;
    }

    public void setAlarmtype(String alarmtype) {
        this.alarmtype = alarmtype;
    }

    public Float getLongtitude() {
        return longtitude;
    }

    public void setLongtitude(Float longtitude) {
        this.longtitude = longtitude;
    }

    public Float getLatitude() {
        return latitude;
    }

    public void setLatitude(Float latitude) {
        this.latitude = latitude;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLinktype() {
        return linktype;
    }

    public void setLinktype(String linktype) {
        this.linktype = linktype;
    }

    public String getMaintainport() {
        return maintainport;
    }

    public void setMaintainport(String maintainport) {
        this.maintainport = maintainport;
    }

    public Integer getLastmaintainuid() {
        return lastmaintainuid;
    }

    public void setLastmaintainuid(Integer lastmaintainuid) {
        this.lastmaintainuid = lastmaintainuid;
    }

    public Date getLastmaintaintime() {
        return lastmaintaintime;
    }

    public void setLastmaintaintime(Date lastmaintaintime) {
        this.lastmaintaintime = lastmaintaintime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", equipmentid=").append(equipmentid);
        sb.append(", equipmentname=").append(equipmentname);
        sb.append(", equipmenttype=").append(equipmenttype);
        sb.append(", alarmtype=").append(alarmtype);
        sb.append(", longtitude=").append(longtitude);
        sb.append(", latitude=").append(latitude);
        sb.append(", address=").append(address);
        sb.append(", linktype=").append(linktype);
        sb.append(", maintainport=").append(maintainport);
        sb.append(", lastmaintainuid=").append(lastmaintainuid);
        sb.append(", lastmaintaintime=").append(lastmaintaintime);
        sb.append("]");
        return sb.toString();
    }
}